﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmployeesIDCard.aspx.cs" Inherits="Employees_EmployeesIDCard" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource runat="server" id="Master" datamember="ViewEmpIDCard" webdatasetid="WMaster"
        cachedataset="True">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 40px;">
                部门：
            </td>
            <td>
                <uc1:DepartmentDList ID="Depart" runat="server" />
            </td>
            <td style="width: 40px;">
                员工：
            </td>
            <td>
                <uc2:SelUser ID="SelUser" runat="server" />
            </td>
            <td style="width: 80px;">
                员工状态：
            </td>
            <td>
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="-1">未选择</asp:ListItem>
                    <asp:ListItem Value="1">在职</asp:ListItem>
                    <asp:ListItem Value="0">离职</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 40px;">
                月份：
            </td>
            <td>
                <asp:DropDownList ID="DDLMonth" runat="server">
                    <asp:ListItem Value="0">未选择</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align: right; margin-right: 10px;">
                <span class="roundbtn">
                    <asp:LinkButton ID="SearchButton" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;"
                        OnClick="Search_Click"></asp:LinkButton>
                </span>
            </td>
        </tr>
    </table>
    <div class="tabsI" runat="server" id="Record">
        <ul>
            <li runat="server" id="liDownLoad">
                <asp:LinkButton ID="DownLoad" runat="server" Text="<span style='color:#eeff99;'> 列表数据导出 </span>"
                    CssClass="UnHover" OnClick="DownLoad_Click"></asp:LinkButton>
            </li>
        </ul>
    </div>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        pagesize="20" onrowdatabound="wgvMaster_RowDataBound">
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:BoundField DataField="EmployeeID" HeaderText="员工工号" 
                    SortExpression="EmployeeID" />
                <asp:BoundField DataField="EmpName" HeaderText="员工姓名" 
                    SortExpression="EmpName" />
                <asp:BoundField DataField="DepartmentId" HeaderText="所属部门" 
                    SortExpression="DepartmentId" Visible="False" />
                <asp:BoundField DataField="DepartmentNAME" HeaderText="部门名称" 
                    SortExpression="DepartmentNAME" />
                <asp:BoundField DataField="IDCard" HeaderText="身份证号" 
                    SortExpression="IDCard" />
                <asp:TemplateField HeaderText="性别" SortExpression="Sex">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Sex") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Sex" runat="server" Text='<%# Bind("Sex") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出生年月" SortExpression="Birthday">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpIDCardBirthdayE" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" Text='<%# Bind("Birthday") %>' ToolTip="Birthday" 
                            UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpIDCardBirthdayF" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" ToolTip="Birthday" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewEmpIDCardBirthday" runat="server" 
                            Text='<%# Bind("Birthday", "{0:d}") %>' ToolTip="Birthday"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
</columns>
        <pagersettings mode="NumericFirstLast"></pagersettings>
        <rowstyle backcolor="#EFF3FB" horizontalalign="Center"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
</asp:Content>
